<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title></title>
    	<style type="text/css">
			.Tab{ border-collapse:collapse; width:1100px; height:30px;}
			.Tab td{ border:solid 1px #000}
			</style>
  </head>
	<body>
		<h1 align="center">
			iT wOrks.<br>
			tHis iS cAmpus fAir mAnage Page.<br>
		</h1>
		<hr>
		
		<table align="center" cellspacing="0" class="Tab">
	  	<tr>
	    	<td align="center"><a href="__APP__/City">城市列表</a></td>
	    	<td align="center"><a href="__APP__/School/">学校列表</a></td>
	    	<td align="center"><a href="__APP__/Book">书籍信息</a></td>	    	
	    	<td align="center"><a href="__APP__/Other">生活用品</a></td>
	  	</tr>
  	</table>
  	<hr>
  	
		<?php if(($Pagetype)  ==  "1"): ?><h3>
		>>添加城市&nbsp;&nbsp;&nbsp;&nbsp;<a href="__APP__/City">[城市列表]</a><br>
		</h3>
		<hr>
		
		<form name='City' method='post' action="__URL__/Add">
			<table align="center" cellspacing="0" class="Tab">
		  	<tr>
		    	标识ID&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="markid" id="markid">
		  	</tr>
		  	<tr>
		    	类型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		    	<select name="type" >
						<option value="1">省份
						<option value="2">城市
						<option value="3">区域
					</select>
		  	</tr>
		  	<tr>
		    	名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name='name' id="name">
		  	</tr>
		  	<input type="submit" value="提交">
	  	</table>
		</form><?php endif; ?>
	
		<?php if(($Pagetype)  ==  "2"): ?><h3>
		>>修改城市&nbsp;&nbsp;&nbsp;&nbsp;<a href="__APP__/City">[城市列表]</a><br>
		</h3>
		<hr>
		
		<form name='City' method='post' action="__APP__/CityAdd/Save">
			<input type="hidden" name="id" id="id" value=<?php echo ($City['id']); ?>>
			<table align="center" cellspacing="0" class="Tab">
		  	<tr>
		    	标识ID&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="markid" id="markid" value=<?php echo ($City['markid']); ?>>
		  	</tr>
		  	<tr>
		    	类型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		    	<select name="type" >
		    		<?php if(($City["type"])  ==  "1"): ?><option value="1" selected>省份
		    			<option value="2">城市
							<option value="3">区域<?php endif; ?>
		    		<?php if(($City["type"])  ==  "2"): ?><option value="1">省份
		    			<option value="2" selected>城市
							<option value="3">区域<?php endif; ?>
		    		<?php if(($City["type"])  ==  "3"): ?><option value="1">省份
		    			<option value="2">城市
							<option value="3" selected>区域<?php endif; ?>
					</select>
		  	</tr>
		  	<tr>
		    	名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name='name' id="name" value=<?php echo ($City['name']); ?>>
		  	</tr>
		  	<input type="submit" value="提交">
	  	</table>
		</form><?php endif; ?>

		<?php if(($Pagetype)  ==  "3"): ?><h3>
		>>查看城市&nbsp;&nbsp;&nbsp;&nbsp;<a href="__APP__/City">[城市列表]</a><br>
		</h3>
		<hr>
		
		<form name='City' method='post'>
			<table align="center" cellspacing="0" class="Tab">
		  	<tr>
		    	标识ID&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="markid" id="markid" value=<?php echo ($City["markid"]); ?> readonly>
		  	</tr>
		  	<tr>
		    	类型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		    	<select name="type" >
		    		<?php if(($City["type"])  ==  "1"): ?><option value="1" selected>省份<?php endif; ?>
		    		<?php if(($City["type"])  ==  "2"): ?><option value="2" selected>城市<?php endif; ?>
		    		<?php if(($City["type"])  ==  "3"): ?><option value="3" selected>区域<?php endif; ?>
					</select>
		  	</tr>
		  	<tr>
		    	名称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name='name' id="name" value=<?php echo ($City["name"]); ?> readonly>
		  	</tr>
	  	</table>
		</form><?php endif; ?>				
  	<hr>
  	
	</body>
</html>